package com.hgyc.mom.wms.enums;

/**
 * 入库单类型字典类
 * 自动生成的枚举类，请勿手动修改

 * @author fwj
 * @since 2025-09-25 09:45:11
 * @version 1.0
 **/
public enum StockInTypeEnum {
    PURCHASE("purchase", "采购入库"),
    PRODUCT("product", "生产入库"),
    PRODUCT_RETURN("product_return", "生产退料"),
    CUSTOMER_PROVIDE("customer_provide", "客供入库"),
    CUSTOMER_RETURN("customer_return", "客退入库"),
    OTHER("other", "其他入库")
    ;

    private final String value;
    private final String label;

    StockInTypeEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public String getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    public static StockInTypeEnum of(String value) {
        if (value == null) {
            return null;
        }
        for (StockInTypeEnum item : StockInTypeEnum.values()) {
            if (item.value.equals(value)) {
                return item;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.label;
    }
}

